<include file="__THEME__/header" />
<link href="../Public/account.css" rel="stylesheet" type="text/css" />
<link href="../Public/css/square.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="__PUBLIC__/js/jquery.form.js"></script>
<script type="text/javascript" src="../Public/js/account.js"></script>

<div class="content"><!-- 内容 begin  --> 
  
  <div class="main no_l"> <!-- 右侧内容 begin  -->
    <div class="mainbox">
      <div class="mainbox_appC no_r">
        <div class="tab-menu">
        	<ul>
            <li><a href="{:U('home/Account/weiboshare')}" class="feed_item on"><span>分享代码</span></a></li>
            <li><a href="{:U('home/Account/weiboshow')}" class="feed_item"><span>微博秀</span></a></li>
            </ul>
        </div>
    <!-- 切换标签 end  -->
    <div class="mainbox_C_C">
		<div class="setItems">
			<div class="data"><!-- 邀请码 begin  -->
                  <div class="inviteMode mt10" style="background-color:#fff">
                    <dl>
                    <dt>选择样式</dt>
                    <dd class="lineD_btm">
						<span class="rd ml10"><label><input name="share_button" onclick="setButton(this.value);" type="radio" checked="checked" value="mbutton.png" />大按钮</label></span>
						<span class="rd ml10"><label><input name="share_button" onclick="setButton(this.value);" type="radio" value="sbutton.png" />小按钮</label></span>
						<span class="rd ml10"><label><input name="share_button" onclick="setButton(this.value);" type="radio" value="micon.png" />大图标</label></span>
						<span class="rd ml10"><label><input name="share_button" onclick="setButton(this.value);" type="radio" value="sicon.png" />小图标</label></span>
					</dd>
                    <dd class="btn_share_style">
						<span id="share_button_test"></span>
					</dd>
                    </dl>
                  </div>
                  <div class="inviteMode mt10">
                    <h5>将其他网页内容分享到{$ts['site']['site_name']}(复制下面代码,粘贴到其他网页源码中)</h5>
					<textarea name="textarea2" id="share_button_value" cols="45" rows="5" onclick="select()"></textarea>
                    <div>
                      <input type="submit" name="button" id="button2" value="复制代码" class="right" />
                    </div>
                  </div>
            </div>
          </div>
      </div><div class="c"></div>
    </div>
  </div>
  <!-- 右侧内容 end  -->
  <div class="c"></div>  
</div>
</div>
<script type="text/javascript">
function setButton(icon){
	var html = '<a title="分享到{$ts['site']['site_name']}" href="javascript:void(0)" onclick="var pic=\'\',d=document,w=window,e=encodeURIComponent,r=\'{:U('home/Widget/share','1=1')}\',l=d.location,t=e(d.title),h=e(l.href),u=r+\'&url=\'+h+\'&title=\'+t+\'&pic=\'+pic;if(!w.open(u)){l.href=u;}"><img src="{*__THEME__}/images/shareicon/'+icon+'" alt="分享到分享到{$ts['site']['site_name']}" /></a>';
	$('#share_button_value').text(html);
	$('#share_button_test').html(html);
}
setButton('mbutton.png');
</script>
<!-- 内容 end --> 
<include file="__THEME__/footer" />
